import { cmsRequest } from '@/request'

export const fetchDictionarySelect = (payload: any) => {
  return cmsRequest.post('/plant/dictionary/select', payload)
}

export const fetchDictionarySecondLabel = (payload: any) => {
  return cmsRequest.post('/plant/dictionary/answerSecondLabel', payload)
}

export const fetchMessageList = (payload: any) => {
  return cmsRequest.post('/plant/msgBroad/query', payload)
}

export const fetchMessageAdd = (payload: any) => {
  return cmsRequest.post('/plant/msgBroad/insertOne', payload)
}

export const fetchMessageReply = (payload: any) => {
  return cmsRequest.put('/plant/msgBroad/upateById', payload)
}

export const fetchMessageDelete = (id: number) => {
  return cmsRequest.delete(`/plant/msgBroad/${id}`, )
}